package com.kingboy.kbg.demand.entity.po;

import java.io.Serializable;
import java.util.Date;

public class DemandClient implements Serializable {
    private Long id;

    /**
     * 服务编码
     *
     * @mbg.generated
     */
    private String code;

    /**
     * 服务密钥
     *
     * @mbg.generated
     */
    private String secret;

    /**
     * 服务名
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 是否锁定
     *
     * @mbg.generated
     */
    private String locked;

    /**
     * 描述
     *
     * @mbg.generated
     */
    private String description;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date crtTime;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String crtUser;

    /**
     * 创建人姓名
     *
     * @mbg.generated
     */
    private String crtName;

    /**
     * 创建主机
     *
     * @mbg.generated
     */
    private String crtHost;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updTime;

    /**
     * 更新人
     *
     * @mbg.generated
     */
    private String updUser;

    /**
     * 更新姓名
     *
     * @mbg.generated
     */
    private String updName;

    /**
     * 更新主机
     *
     * @mbg.generated
     */
    private String updHost;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 开发者ID，提供给各个应用的设别码
     *
     * @mbg.generated
     */
    private String appId;

    private String attr4;

    private String attr5;

    private String attr6;

    private String attr7;

    private String attr8;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocked() {
        return locked;
    }

    public void setLocked(String locked) {
        this.locked = locked;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public String getCrtUser() {
        return crtUser;
    }

    public void setCrtUser(String crtUser) {
        this.crtUser = crtUser;
    }

    public String getCrtName() {
        return crtName;
    }

    public void setCrtName(String crtName) {
        this.crtName = crtName;
    }

    public String getCrtHost() {
        return crtHost;
    }

    public void setCrtHost(String crtHost) {
        this.crtHost = crtHost;
    }

    public Date getUpdTime() {
        return updTime;
    }

    public void setUpdTime(Date updTime) {
        this.updTime = updTime;
    }

    public String getUpdUser() {
        return updUser;
    }

    public void setUpdUser(String updUser) {
        this.updUser = updUser;
    }

    public String getUpdName() {
        return updName;
    }

    public void setUpdName(String updName) {
        this.updName = updName;
    }

    public String getUpdHost() {
        return updHost;
    }

    public void setUpdHost(String updHost) {
        this.updHost = updHost;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAttr4() {
        return attr4;
    }

    public void setAttr4(String attr4) {
        this.attr4 = attr4;
    }

    public String getAttr5() {
        return attr5;
    }

    public void setAttr5(String attr5) {
        this.attr5 = attr5;
    }

    public String getAttr6() {
        return attr6;
    }

    public void setAttr6(String attr6) {
        this.attr6 = attr6;
    }

    public String getAttr7() {
        return attr7;
    }

    public void setAttr7(String attr7) {
        this.attr7 = attr7;
    }

    public String getAttr8() {
        return attr8;
    }

    public void setAttr8(String attr8) {
        this.attr8 = attr8;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", secret=").append(secret);
        sb.append(", name=").append(name);
        sb.append(", locked=").append(locked);
        sb.append(", description=").append(description);
        sb.append(", crtTime=").append(crtTime);
        sb.append(", crtUser=").append(crtUser);
        sb.append(", crtName=").append(crtName);
        sb.append(", crtHost=").append(crtHost);
        sb.append(", updTime=").append(updTime);
        sb.append(", updUser=").append(updUser);
        sb.append(", updName=").append(updName);
        sb.append(", updHost=").append(updHost);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", appId=").append(appId);
        sb.append(", attr4=").append(attr4);
        sb.append(", attr5=").append(attr5);
        sb.append(", attr6=").append(attr6);
        sb.append(", attr7=").append(attr7);
        sb.append(", attr8=").append(attr8);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemandClient other = (DemandClient) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getSecret() == null ? other.getSecret() == null : this.getSecret().equals(other.getSecret()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getLocked() == null ? other.getLocked() == null : this.getLocked().equals(other.getLocked()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getCrtTime() == null ? other.getCrtTime() == null : this.getCrtTime().equals(other.getCrtTime()))
            && (this.getCrtUser() == null ? other.getCrtUser() == null : this.getCrtUser().equals(other.getCrtUser()))
            && (this.getCrtName() == null ? other.getCrtName() == null : this.getCrtName().equals(other.getCrtName()))
            && (this.getCrtHost() == null ? other.getCrtHost() == null : this.getCrtHost().equals(other.getCrtHost()))
            && (this.getUpdTime() == null ? other.getUpdTime() == null : this.getUpdTime().equals(other.getUpdTime()))
            && (this.getUpdUser() == null ? other.getUpdUser() == null : this.getUpdUser().equals(other.getUpdUser()))
            && (this.getUpdName() == null ? other.getUpdName() == null : this.getUpdName().equals(other.getUpdName()))
            && (this.getUpdHost() == null ? other.getUpdHost() == null : this.getUpdHost().equals(other.getUpdHost()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
            && (this.getAttr4() == null ? other.getAttr4() == null : this.getAttr4().equals(other.getAttr4()))
            && (this.getAttr5() == null ? other.getAttr5() == null : this.getAttr5().equals(other.getAttr5()))
            && (this.getAttr6() == null ? other.getAttr6() == null : this.getAttr6().equals(other.getAttr6()))
            && (this.getAttr7() == null ? other.getAttr7() == null : this.getAttr7().equals(other.getAttr7()))
            && (this.getAttr8() == null ? other.getAttr8() == null : this.getAttr8().equals(other.getAttr8()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getSecret() == null) ? 0 : getSecret().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getLocked() == null) ? 0 : getLocked().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getCrtTime() == null) ? 0 : getCrtTime().hashCode());
        result = prime * result + ((getCrtUser() == null) ? 0 : getCrtUser().hashCode());
        result = prime * result + ((getCrtName() == null) ? 0 : getCrtName().hashCode());
        result = prime * result + ((getCrtHost() == null) ? 0 : getCrtHost().hashCode());
        result = prime * result + ((getUpdTime() == null) ? 0 : getUpdTime().hashCode());
        result = prime * result + ((getUpdUser() == null) ? 0 : getUpdUser().hashCode());
        result = prime * result + ((getUpdName() == null) ? 0 : getUpdName().hashCode());
        result = prime * result + ((getUpdHost() == null) ? 0 : getUpdHost().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
        result = prime * result + ((getAttr4() == null) ? 0 : getAttr4().hashCode());
        result = prime * result + ((getAttr5() == null) ? 0 : getAttr5().hashCode());
        result = prime * result + ((getAttr6() == null) ? 0 : getAttr6().hashCode());
        result = prime * result + ((getAttr7() == null) ? 0 : getAttr7().hashCode());
        result = prime * result + ((getAttr8() == null) ? 0 : getAttr8().hashCode());
        return result;
    }
}